//
//  MyBillsViewModel.m
//  HTP
//
//  Created by 王鑫 on 15/11/13.
//  Copyright © 2015年 nit. All rights reserved.
//

#import "MyBillViewModel.h"

@implementation MyBillViewModel

- (void)getBillByuserId:(NSString *)userId {
    
    tns1_getBillByuserId *getBills = [[tns1_getBillByuserId alloc] init];
    getBills.userId = userId;
    [WSDLNetWork shareInstance:^interfaceSoapBindingResponse *(interfaceSoapBinding *binding) {
        return [binding getBillByuserIdUsingParameters:getBills headerElements:nil];
    }withResult:^(NSDictionary *message) {
        [self fetchResult:message];
    }throwError:^(NSError *error){
        [self fetchError];
    }];
}

@end
